package com.tyx.chargingpile.vo;

import io.netty.channel.ChannelHandlerContext;

/**
 * 通讯报文返回值
 */
public class SocketResponseResult {

    /**
     * 通讯通道上下文
     */
    private ChannelHandlerContext channelHandlerContext;

    /**
     * 发送报文内容
     */
    private byte[] context;

    /** 通讯通道上下文 */
    public ChannelHandlerContext getChannelHandlerContext() {
        return channelHandlerContext;
    }

    /** 通讯通道上下文 */
    public void setChannelHandlerContext(ChannelHandlerContext channelHandlerContext) {
        this.channelHandlerContext = channelHandlerContext;
    }

    /** 发送报文内容 */
    public byte[] getContext() {
        return context;
    }

    /** 发送报文内容 */
    public void setContext(byte[] context) {
        this.context = context;
    }

    public SocketResponseResult(ChannelHandlerContext channelHandlerContext, byte[] context) {
        this.channelHandlerContext = channelHandlerContext;
        this.context = context;
    }
}
